﻿
@{
    ViewData["Title"] = "SalesUpdate";
    Layout = "~/Views/Shared/Template.cshtml";
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<h2>新增销售订单</h2>
<!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
<link href="//unpkg.com/layui@2.9.18/dist/css/layui.css" rel="stylesheet">
<br />
<table class="layui-anim" width="100%" border="1">
    <tr>
        <td>新增销售订单</td>
    </tr>
</table>
<br />
<br />
<form class="layui-form layui-form-pane" action="">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">销售单号：</label>
            <div class="layui-input-block">
                <input type="text" name="salesOrdersNo" id="salesOrdersNo" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">单据类型：</label>
            <div class="layui-input-inline">
                <select id="procurementTypeId" name="procurementTypeId" lay-filter="aihao">
                    <option value="0">全部</option>
                    <option value="实际订单">实际订单</option>
                    <option value="预知订单">预知订单</option>
                    <option value="创建订单">创建订单</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">关联订单号：</label>
            <div class="layui-input-inline">
                <input type="text" name="associateNumber" id="associateNumber" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">客户编号：</label>
            <div class="layui-input-block">
                <input type="text" name="clientNo" id="clientNo" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label"> 客户名称：</label>
            <div class="layui-input-inline">
                <input type="text" name="clientName" id="clientName" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">联系人：</label>
            <div class="layui-input-inline">
                <input type="text" name="salesOrdersPerson" id="salesOrdersPerson" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">电话：</label>
            <div class="layui-input-block">
                <input type="text" name="salesOrdersPhone" id="salesOrdersPhone" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label"> 发货日期：</label>
            <div class="layui-input-inline">
                <input type="date" name="shipmentsDate" id="shipmentsDate" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-inline">
                <input type="text" name="salesOrdersRemark" id="salesOrdersRemark" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">制单人：</label>
            <div class="layui-input-inline">
                <input type="text" name="singleMaker" id="singleMaker" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">制单时间</label>
            <div class="layui-input-inline">
                <input type="date" name="singledate" id="singledate" autocomplete="off" class="layui-input">
            </div>
        </div>

    </div>
    <div style="float:left;margin-top:40px;margin-bottom:40px">
        <h4>产品信息</h4>
    </div>
    <div style="float:right;margin-top:40px;margin-bottom:40px">
        <button type="button" class="layui-btn layui-bg-gray" lay-on="test-page-custom">
            <i class="layui-icon layui-icon-add-1"></i>新增产品
        </button>
    </div>
    <table class="layui-hide" id="allocationProduct"></table>
    <div class="layui-form-item" style="text-align:center;margin-top:50px">
        <button type="button" class="layui-btn" lay-submit lay-filter="demo2" onclick="SalesUpdate()">提交</button>
        <button type="reset" class="layui-btn layui-btn-primary" onclick="location.href='/Purchase/SaleShow'">取消</button>
    </div>
</form>
<script src="~/js/purchase/saleshow/salesupdate.js"></script>